package util
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	
	public class Graphics
	{
		public function Graphics()
		{
		}
		
		public static function createMcByBitmapData(data:BitmapData):MovieClip
		{
			if(!data)
				return null;
			
			var bitmap:Bitmap = new Bitmap(data, "auto", true);
			bitmap.smoothing = true;
			var mc:MovieClip = new MovieClip();
			mc.addChild(bitmap);
			return mc;
		}
	}
}